package com.yunyan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@TableName("users")
@Data
public class UserData {

    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    private String account;

    @TableField("`password`")
    private String password;

    private String nickName;

    private Date createTime;

    private String email;

    private String gender;

    private Integer score;

    @TableField("`rank`")
    private Integer rank;

    @TableField("`subject`")
    private String subject;

    private String attr;

    private Integer examYear;

    // 角色 用户 or 管理员
    private String role;
}
